<!--<div style="margin-top: 10%">
  <P>我是父组件</P>
  <input placeholder="请输入要购买股票的类型" [(ngModel)]="stock">
  <app-children [stockCode]="stock" [number]=100></app-children>
  <app-price-quote (lastPrice)="receiveData($event)"></app-price-quote>
</div>-->
<!--默认情况下，lastPrice对应子组件变量名-->
<p>测试组件通信</p>
<app-price-quote (buy)="buyHandler($event)"></app-price-quote>
<app-children [priceQuote]="priceQuote"></app-children>
<P>这是报价组件外部，股票代码是{{priceQuote.stockCode}},股票代码是{{priceQuote.lastPrice | number: '2.2-2'}}</P>
